package network.themis.rms.console.common.model;

import lombok.Data;

/**
 * @author ccl
 * @time 2018-06-11 16:55
 * @name PageModel
 * @desc:
 */
@Data
public class PageModel {
    /**
     * total pages
     */
    private int totalPage = 0;

    /**
     * total elements
     */
    private long totalElement = 0L;

    /**
     * data
     */
    private Object data;

    public PageModel(int totalPage, Object data) {
        this.totalPage = totalPage;
        this.data = data;
    }

    public PageModel(int totalPage, long totalElement, Object data) {
        this.totalPage = totalPage;
        this.totalElement = totalElement;
        this.data = data;
    }
}
